package com.cmict.data.system.api.encodedetails.dict;

import com.cmict.data.system.api.encodedetails.dict.dto.EncodeDetailsDTO;
import com.cmict.data.system.enums.ApiConstants;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiImplicitParam;
import io.swagger.annotations.ApiOperation;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

/**
 * 字典数据 API 接口
 *
 * @author awesome
 */
@FeignClient(name = ApiConstants.NAME)
@Api(tags = "RPC 服务 - 自动编码")
public interface EnCodeDataApi {
    String PREFIX = ApiConstants.PREFIX + "/encodedetails";

    /**
     * 获得编码详情数据列表
     *
     * @param encodeId 请求
     * @return 编码详情数据列表
     */
    @GetMapping(PREFIX + "/page")
    @ApiOperation("获取编码列表")
    @ApiImplicitParam(name = "encodeId", value = "部门编号数组", example = "1,2", required = true, dataTypeClass = Long.class)
    List<EncodeDetailsDTO> getDictEncodeDetailsList(@RequestParam("encodeId")Long encodeId);

}
